{% extends 'home/public/base.html' %}


{% block css %}
    <link rel="stylesheet" type="text/css" href="/static/home/css/order.css">
    <link rel="stylesheet" type="text/css" href="/static/home/css/order-app.css">

{% endblock %}

{% block con %}
<div class="mainbody order">
    <div class="container">
        <!-- 面包屑导航 -->
        <div class="crumbs col-xs-12 col-sm-12">
            <ol class="breadcrumb">
                <li class="hidden-xs hidden-sm"><a href="index.html">首页</a></li>
                <li class="hidden-xs hidden-sm"><a href="member.html">我的商城</a></li>
                <li class="active">个人信息</li>
            </ol>
        </div><!-- 面包屑导航 E-->
        
        <div class="main clearfix">
            <!-- 左侧导航 -->
            <div class="left-nav f-fl col-md-4 hidden-xs hidden-sm">
                <div class="nav-main">
                    <a href="javascript:void(0);" class="type-title"><span class="glyphicon glyphicon-list-alt" aria-hidden="true"></span>订单中心</a>
                    <a href="{% url 'myhome_myorders' %}" class="ml ">我的订单</a>
                    <a href="#" class="ml ">我的回购单</a>
                    <a href="#" class="ml ">我的意外保</a>
                    <a href="javascript:void(0);" class="type-title"><span class="glyphicon glyphicon-user" aria-hidden="true"></span>个人中心</a>
                    <a href="{% url 'myhome_myinfo' %}" class="ml active">个人信息</a>
                    <a href="{% url 'myhome_myaddress' %}" class="ml ">收货地址</a>
                    <a href="#" class="ml ">修改密码</a>
                </div>
            </div><!-- 左侧导航 E-->
            <!-- 右侧内容展示 -->
            <div style="margin:30px;text-align: center;">
            
                <form action="{% url 'myhome_myinfo' %}" method="post" >
                    {% csrf_token %}
                    <table style="border:1px dotted #ffa500;" >
                        <th >
                            <tr>
                                <div style="margin-top: 40px;margin-right: 20px;margin-left: 20px;margin-top: 20px">
                                    <span>用户名: </span>
                                    <input type="text" name="username" value="{{ ulist.username }}">
                                </div>
                            </tr>
                        </th>
                        <th>
                             <tr>
                                <div style="margin: 20px">
                                    <span>邮箱: </span>
                                    {% if v.email == None %}
                                        <input type="text" name="email" value="" placeholder="未填写">
                                    {% else %}
                                        <input type="text" name="email" value="{{ ulist.email }}">
                                    {% endif %}
                                </div>
                            </tr>
                        </th>
                        <th>
                             <tr>
                                <div style="margin: 20px">
                                    <span>电话: </span>
                                    <input type="text" name="phone" maxlength="11" value="{{ ulist.phone }}">
                                </div>
                            </tr>
                        </th>
                        <th> 
                             <tr>
                                <div style="margin: 20px">
                                    <span>年龄: </span>            
                                    {% if v.age == None %}
                                        <input type="text" name="age" value="" placeholder="未填写">
                                    {% else %}
                                        <input type="text" name="age" value="{{ ulist.age }}">
                                    {% endif %}
                                </div>
                            </tr>
                        </th>
                        <th>   
                            <tr>
                                <div style="margin: 20px">
                                    <span>性别: </span>
            
                                         
                                        <input type="radio" value="1" {% if ulist.sex == '1' %} checked {% endif %}name="sex"> 
                                            男
                                        <input type="radio" value="0" {% if ulist.sex == '0' %} checked {% endif %}name="sex"> 
                                            女 
                                </div>
                            </tr>
                        </th>
                    </table>
                    <input type="submit" name="提交">
                </form>
            
              </div>
            </div>
        </div>
    </div>  
</div>
{% endblock %}